<?php

namespace vv\model;

use think\Model;
use think\model\relation\BelongsTo;

class Bill extends Model
{
    protected $autoWriteTimestamp = true;
    protected $createTime         = 'create_at';
    protected $updateTime         = '';

    public function admin(): BelongsTo
    {
        return $this->belongsTo(Admin::class, 'create_id', 'id');
    }

    public function shop(): BelongsTo
    {
        return $this->belongsTo(Shop::class, 'shop_id', 'id');
    }
}